#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
    class MainWindow;
}

class MainWindow: public QMainWindow {
    Q_OBJECT

private:
    Ui::MainWindow *ui;

    void TextAdd(const QString text);
    void MatrixPrint(const float* const matrix, int strings, int columns);
    bool GetMatrix(const QString s, std::vector<float> &matrix, int &m, int &n);
    void MatrixAddition(std::vector<float> &matrix1, int m1, int n1, std::vector<float> &matrix2, int m2, int n2);
    void MatrixDifference(std::vector<float> &matrix1, int m1, int n1, std::vector<float> &matrix2, int m2, int n2);
    void MatrixMultiplication(std::vector<float> &matrix1, int m1, int n1, std::vector<float> &matrix2, int m2, int n2);

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void MatrixCalc();
};

#endif // MAINWINDOW_H
